package alp.starcode.nudtportal.framework.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * wallet_info（钱包信息）
 * </p>
 *
 * @author xwx
 * @since 2023-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("wallet_info")
@ApiModel(value = "WalletInfo对象", description = "wallet_info（钱包信息）")
public class WalletInfo extends Model<WalletInfo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "钱包余额")
    @TableId("wallet_id")
    private String walletId;

    @ApiModelProperty(value = "用户流水号")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "钱包类型 0为现金钱包，1为补助钱包")
    @TableField("wallet_type")
    private Integer walletType;

    @ApiModelProperty(value = "钱包余额")
    @TableField("balance")
    private BigDecimal balance;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.walletId;
    }

}
